﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Server.WarehouseManage.LossReportingServices.Dto
{
    /// <summary>
	/// 报损Dto
	/// </summary>
	public class LossDto
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 报损单号
        /// </summary>
        [MaxLength(30)]
        public string? FrmLossCode { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        [MaxLength(50)]
        public string? ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [MaxLength(50)]
        public string? ProductName { get; set; }

        /// <summary>
        /// 批次
        /// </summary>
        public string? Batch { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 入库数
        /// </summary>
        public int InWarehouseNumber { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 库位名称
        /// </summary>
        [MaxLength(30)]
        public string? LocationName { get; set; }

        /// <summary>
        /// 报损类型
        /// </summary>
        [MaxLength(30)]
        public string? FrmLossType { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 制单人
        /// </summary>
        [MaxLength(30)]
        public string? Creator { get; set; }

        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime CreatorTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 审核人
        /// </summary>
        [MaxLength(20)]
        public string? Reviewer { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime Audittime { get; set; } = DateTime.Now;
    }

}
